Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI failures by running Ruby <= 2.2 on older Ubuntu image #516

Merged
merged 3 commits into from
Jul 1, 2023

Conversation

mattbrictson
Copy link
Member

@mattbrictson mattbrictson commented Jul 1, 2023

Old versions of Ruby (<= 2.2) no longer work on the latest Ubuntu image.

Fix by using ubuntu-20.04 instead of ubuntu-latest for old Rubies.

Also create roll-ups job called test-all and functional-all that collects the results of all the test and functional job runs for various Ruby versions into two checks that we can use for the branch protection rule.

Old versions of Ruby (<= 2.2) no longer work on the latest Ubuntu image.

Fix by using `ubuntu-20.04` instead of `ubuntu-latest` for old Rubies.

Also create a roll-up job called `test-all` that collects the results of
`test` and `test-legacy` jobs into a single check that we can use for
the branch protection rule.
@mattbrictson mattbrictson added the 🏠 Housekeeping Non-user facing cleanup and maintenance label Jul 1, 2023
ruby: [ "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "head" ]
ruby: ["2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "head"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗒️ "2.0", "2.1", "2.2" have been moved to the new test-legacy job.

@@ -19,6 +19,33 @@ jobs:
- name: Run tests
run: bundle exec rake test:units

test-legacy:
runs-on: ubuntu-20.04
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗒️ Use the older Ubuntu runner that is compatible with Ruby "2.0", "2.1", "2.2"

- name: Run tests
run: bundle exec rake test:units

test-all:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗒️ This aggregates all of the test* the matrix runs into a single check. That way the branch protection rule becomes much simpler.

@@ -58,3 +99,15 @@ jobs:

- name: Run functional tests
run: bundle exec rake test:functional

functional-all:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗒️ Likewise this aggregates all the functional* matrix runs into one check.

@mattbrictson mattbrictson marked this pull request as ready for review July 1, 2023 17:44
@mattbrictson mattbrictson merged commit 6325d79 into master Jul 1, 2023
28 checks passed
@mattbrictson mattbrictson deleted the chores/fix-ci-old-rubies branch July 1, 2023 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏠 Housekeeping Non-user facing cleanup and maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant